package com.dreamsinpost.media;

//
//Class for creating encoded video files using ffmpeg library
//@Author: Kudin Konstantin
//
//

public abstract class Core {
	
	/*
	static {
    	System.loadLibrary("ffmpeg");
    	System.loadLibrary("mediacore");
    }
	
	private native int nGetProgress();
	private native int nEncodeVideo();
	*/
	
	
	public static int CODEC_MPEG4VIDEO = 1;
	public static int CODEC_MPEG3AUDIO = 2;
	
	public static int ERROR_NO_ERROR = 0;
	
	public static String sVideoFile;
	public static String sInputAudioFile;
	public static String sInputImage;
	public static int iCodecType  = CODEC_MPEG4VIDEO;
	public static float fQuality;
	public static int Bitrate;
	public static int iFramesPerSec = 25;
	public static int iHeight;
	public static int iWeight;
	public static long lFileSize = 0;
	
	
	

	
	private static int CheckParams()
	{
		return 0;
	}
	
	public static int getProgerss()
	{
		return 50;
	}
	
	public static int EncodeVideo() {
		if(CheckParams() == ERROR_NO_ERROR)
			return 0;
		return 1;
	}
	
	
}
